package com.bjsxt.usermanager.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Arrays;
import java.util.List;

@Controller
public class TestController {
    @RequestMapping("/test")
    @ResponseBody
    public String test(){

        return "测试基于Docker运行Spring Boot项目";
    }

    public static void main(String[] args) {
        List<String> l = a();
        for(String o : l){
            System.out.println(o);
            System.out.println(o.getClass().getName());
        }
    }

    public static List a(){
        List<Integer> a = Arrays.asList(1,2,3);
        return a;
    }


}
